<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ page errorPage="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Página de error</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" type="text/css" href="css/tables.css"/>
</head>
<body>
<!--  marcamos que es una página de errores -->
<%@ page isErrorPage="true" import="java.io.*"%>

<div id="main-error" class="clearfix">

    <div class="clearfix">
   	 <div class="col1">
    <div align="center">
   		 <img src="images/error.png"
   			 style="max-width: 400px; max-height: 400px"></div>
   	 </div>
   	 <div class="col2">
    
   		 <div id="error_page">
   		 <h1 STYLE="text-align: center"><B><FONT SIZE=7>ERROR ANOMALO</FONT></B></h1>
   			 </br></br>    
   			 <h2 STYLE="text-align: center"><B><FONT SIZE=5>Contacte con su administrador</FONT></B></h2>    
   			 </br>
   			 <p STYLE="text-align: center">
   				 <form id="volverInicio" name="volverInicio" action="ErrorServlet"  method="post">
   					 <input type="submit" id="volver" value="Volver Al Inicio" />
   				 </form>    
   			 </p>   			 
   		 </div>
   	 </div>
   </div>    
    
    
    <div class="clearfix">
   			 
   				 <p>Exception Message:</p>
   				 <p><%=exception.getMessage()%></p>

   				 <p>StackTrace:</p>
   				 <p>
   					 <%
   							 StringWriter stringWriter = new StringWriter();
   							 PrintWriter printWriter = new PrintWriter(stringWriter);
   							 exception.printStackTrace(printWriter);
   							 out.println(stringWriter);
   							 printWriter.close();
   							 stringWriter.close();
   						 %>
   				 </p>
   			 



    </div>
    
    

 </div>
 
</body>
</html>